import request from './api'
import qs from 'qs'
export function assembleList (data) {
  // 拼团课程列表
  return request({
    url: '/assemble/v1.Assemble/assemble_list',
    method: 'post',
    data
  })
}
export function classInfo (data) {
  // 拼团课程详情
  return request({
    url: '/assemble/v1.Assemble/assemble_class_info',
    method: 'post',
    data
  })
}
// 课程列表
export function bookschapter (data) {
  return request({
    url: '/Chat/chat/books_chapter',
    method: 'post',
    data
  })
}
//  拼团购买
export function payment (data) {
  return request({
    url: '/assemble/v1.Assemble/payment',
    method: 'post',
    data
  })
}
//  正常购买
export function byCurriculum (data) {
  data = qs.stringify(data)
  return request({
    url: '/Chat/chat/by_curriculum',
    method: 'post',
    data
  })
}
